package com.ldk.base.framework.entity;

import java.io.Serializable;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.springframework.util.StringUtils;

import com.alibaba.fastjson.annotation.JSONField;
/**
 * BaseEntity Entity基类
 * @author xiangwl
 *
 */
public abstract class BaseEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8657438795760377522L;
	
	/**
	 * 图片的根地址URL，如http://image.baidu.com/
	 */
	@JSONField(serialize=false)
	@JsonIgnore
	private String imageRoot="";
	/**
	 * 开始时间
	 */
	@JSONField(serialize=false)
	@JsonIgnore
	private java.lang.Long   startTime;
	/**
	 * 结束时间
	 */
	@JSONField(serialize=false)
	@JsonIgnore
	private java.lang.Long   endTime;


	/**
	 * 订单完成开始时间
	 */
	@JSONField(serialize=false)
	@JsonIgnore
	private java.lang.Long   startCompleteTime;
	/**
	 * 订单完成结束时间
	 */
	@JSONField(serialize=false)
	@JsonIgnore
	private java.lang.Long   endCompleteTime;
	
	/**
	 * 关键字搜索
	 */
	@JSONField(serialize=false)
	@JsonIgnore
	private String searchKey;
	

	public String getImageRoot() {
		if(StringUtils.isEmpty(imageRoot))
			imageRoot = "";
		return imageRoot;
	}

	public Long getStartCompleteTime() {
		return startCompleteTime;
	}

	public void setStartCompleteTime(Long startCompleteTime) {
		this.startCompleteTime = startCompleteTime;
	}

	public Long getEndCompleteTime() {
		return endCompleteTime;
	}

	public void setEndCompleteTime(Long endCompleteTime) {
		this.endCompleteTime = endCompleteTime;
	}

	public java.lang.Long getStartTime() {
		return startTime;
	}

	public java.lang.Long getEndTime() {
		return endTime;
	}
	
	public String getSearchKey() {
		return searchKey;
	}

	public void setImageRoot(String imageRoot) {
		this.imageRoot = imageRoot;
	}

	public void setStartTime(java.lang.Long startTime) {
		this.startTime = startTime;
	}

	public void setEndTime(java.lang.Long endTime) {
		this.endTime = endTime;
	}
	
	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}
}
